using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmBidReceive")]
    public class BidReceive
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BidRecId", ResourceType = typeof(Resources.BidReceiveResource))]
        public int BidRecId { get; set; }

		[ForeignKey("Con")]
		[DataMember, Display(Name = "ConId", ResourceType = typeof(Resources.BidReceiveResource))]
        public int ConId { get; set; }

		[DataMember, Display(Name = "BidRecDate", ResourceType = typeof(Resources.BidReceiveResource))]
        public System.DateTime BidRecDate { get; set; }

		[ForeignKey("Bid")]
		[DataMember, Display(Name = "BidId", ResourceType = typeof(Resources.BidReceiveResource))]
        public int BidId { get; set; }

		[DataMember, Display(Name = "ReceiptNo", ResourceType = typeof(Resources.BidReceiveResource))]
        public string ReceiptNo { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.BidReceiveResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.BidReceiveResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.BidReceiveResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.BidReceiveResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        [DataMember]
        public virtual ICM.MasContact Con { get; set; }

        [DataMember]
        public virtual Bid Bid { get; set; }

    }
}